.class public Lcom/waiqin365/lightapp/view/SearchView;
.super Landroid/widget/LinearLayout;


# instance fields
.field private a:Landroid/widget/EditText;

.field private b:Landroid/view/View;

.field private c:Landroid/widget/Button;

.field private d:Lcom/waiqin365/lightapp/view/hm;

.field private e:Lcom/waiqin365/lightapp/view/hk;

.field private f:Lcom/waiqin365/lightapp/view/hl;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/view/SearchView;->b()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/view/SearchView;->b()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/view/SearchView;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/view/SearchView;)Lcom/waiqin365/lightapp/view/hk;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->e:Lcom/waiqin365/lightapp/view/hk;

    return-object v0
.end method

.method private b()V
    .locals 3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/SearchView;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f030212

    invoke-static {v0, v1, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    const v0, 0x7f0c04f7

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    const-string/jumbo v2, "SearchView"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setTag(Ljava/lang/Object;)V

    const v0, 0x7f0c0086

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->b:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->b:Landroid/view/View;

    new-instance v2, Lcom/waiqin365/lightapp/view/hg;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/view/hg;-><init>(Lcom/waiqin365/lightapp/view/SearchView;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    new-instance v2, Lcom/waiqin365/lightapp/view/hh;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/view/hh;-><init>(Lcom/waiqin365/lightapp/view/SearchView;)V

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    new-instance v2, Lcom/waiqin365/lightapp/view/hi;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/view/hi;-><init>(Lcom/waiqin365/lightapp/view/SearchView;)V

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    const v0, 0x7f0c04f3

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->c:Landroid/widget/Button;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->c:Landroid/widget/Button;

    new-instance v1, Lcom/waiqin365/lightapp/view/hj;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/view/hj;-><init>(Lcom/waiqin365/lightapp/view/SearchView;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/view/SearchView;)Lcom/waiqin365/lightapp/view/hm;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->d:Lcom/waiqin365/lightapp/view/hm;

    return-object v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/view/SearchView;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->b:Landroid/view/View;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/view/SearchView;)Lcom/waiqin365/lightapp/view/hl;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->f:Lcom/waiqin365/lightapp/view/hl;

    return-object v0
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public setClearListener(Lcom/waiqin365/lightapp/view/hk;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/SearchView;->e:Lcom/waiqin365/lightapp/view/hk;

    return-void
.end method

.method public setContent(Ljava/lang/CharSequence;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setSelection(I)V

    return-void
.end method

.method public setHint(Ljava/lang/CharSequence;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setOnSearchKeyChangedListener(Lcom/waiqin365/lightapp/view/hl;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/SearchView;->f:Lcom/waiqin365/lightapp/view/hl;

    return-void
.end method

.method public setRightBtnText(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/SearchView;->c:Landroid/widget/Button;

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setSearchListener(Lcom/waiqin365/lightapp/view/hm;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/SearchView;->d:Lcom/waiqin365/lightapp/view/hm;

    return-void
.end method
